package zut.edu.cn.concertticketmanagementsystem.Dao;


import org.springframework.data.jpa.repository.JpaRepository;
import zut.edu.cn.concertticketmanagementsystem.entity.Collect;

import java.util.List;

public interface CollectDao extends JpaRepository<Collect,Integer> {

    List<Collect> findByUserid(int id);
//    boolean deleteByUseridAndCid(Collect collect);
    List<Collect> findByUseridAndPid(int uid,int pid);
}
